package com.example.repository;

import com.example.dal.entity.DemoAuthor;
import com.example.dal.mapper.DemoAuthorMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

/**
 * @Author: flen
 * @Date: 2018/12/18 14:00
 */
@Repository
public class DemoAuthRepo {

	@Resource
	DemoAuthorMapper demoAuthorMapper;

	public void newDemoAuthor(DemoAuthor author) {
		demoAuthorMapper.insert(author);

	}
}
